package org.zjt.spring.test.demo.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.event.EventPublishingRunListener;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * Description:
 *
 * @author juntao.zhang
 * Date: 2018-05-22 上午10:45
 * @see
 */
@Slf4j
public class MySpringApplicationRunListener extends EventPublishingRunListener {


    public MySpringApplicationRunListener(SpringApplication application, String[] args) {
        super(application, args);
    }

    @Override
    public int getOrder() {
        return super.getOrder();
    }

    @Override
    public void starting() {
        super.starting();
    }

    @Override
    public void environmentPrepared(ConfigurableEnvironment environment) {
        super.environmentPrepared(environment);
    }

    @Override
    public void contextPrepared(ConfigurableApplicationContext context) {
        super.contextPrepared(context);
    }

    @Override
    public void contextLoaded(ConfigurableApplicationContext context) {
        super.contextLoaded(context);
    }

    @Override
    public void finished(ConfigurableApplicationContext context, Throwable exception) {
        super.finished(context, exception);
    }
}
